package Demo2;

/**
 * Created with Intellij IDEA
 * Description
 * User:ASUS
 * Date:2024-08-01
 * Time:16:35
 */
public class Derived extends Base {
   int a;
   char b;
   public void methodA(int a){
       System.out.println("Derived中的methodA()");
   }
    public void methodB(){
        System.out.println("Derived中的methodB()");
    }
    public void methodC(){
        a=100;
        b=101;
        super.a=200;
        super.b=201;
        methodA();
        methodA(20);
        methodB();
        super.methodB();
    }
}
